<?php

namespace common\models\wechat;

use Yii;

/**
 * This is the model class for table "wechat_news_reply".
 *
 * @property string $id
 * @property string $rid
 * @property integer $parent_id
 * @property string $title
 * @property string $author
 * @property string $description
 * @property string $thumb
 * @property string $content
 * @property string $url
 * @property integer $displayorder
 * @property integer $incontent
 * @property integer $createtime
 */
class WechatNewsReply extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'wechat_news_reply';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['rid', 'parent_id', 'title', 'author', 'description', 'thumb', 'content', 'url', 'displayorder', 'incontent', 'createtime'], 'required'],
            [['rid', 'parent_id', 'displayorder', 'incontent', 'createtime'], 'integer'],
            [['content'], 'string'],
            [['title'], 'string', 'max' => 50],
            [['author'], 'string', 'max' => 64],
            [['description', 'thumb', 'url'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'rid' => 'Rid',
            'parent_id' => 'Parent ID',
            'title' => 'Title',
            'author' => 'Author',
            'description' => 'Description',
            'thumb' => 'Thumb',
            'content' => 'Content',
            'url' => 'Url',
            'displayorder' => 'Displayorder',
            'incontent' => 'Incontent',
            'createtime' => 'Createtime',
        ];
    }
}
